import request from '@/utils/request'

// 查询光纤线路分段列表
export function listFiberSection(query) {
    return request({
        url: '/meas/fiberSection/list',
        method: 'get',
        params: query
    })
}

// 查询光纤线路分段详细
export function getFiberSection(id) {
    return request({
        url: '/meas/fiberSection/' + id,
        method: 'get'
    })
}

// 新增光纤线路分段
export function addFiberSection(data) {
    return request({
        url: '/meas/fiberSection',
        method: 'post',
        data: data
    })
}

// 修改光纤线路分段
export function updateFiberSection(data) {
    return request({
        url: '/meas/fiberSection',
        method: 'put',
        data: data
    })
}

// 删除光纤线路分段
export function delFiberSection(id) {
    return request({
        url: '/meas/fiberSection/' + id,
        method: 'delete'
    })
}
